import request from '@/utils/request'

// 查询结算价格列表
export function listSettlementprice(query) {
  return request({
    url: '/settlementCenter/basedata/settlementprice/list',
    method: 'get',
    params: query
  })
}

// 查询结算价格详细
export function getSettlementprice(id) {
  return request({
    url: '/settlementCenter/basedata/settlementprice/' + id,
    method: 'get'
  })
}

// 新增结算价格
export function addSettlementprice(data) {
  return request({
    url: '/settlementCenter/basedata/settlementprice',
    method: 'post',
    data: data
  })
}

// 修改结算价格
export function updateSettlementprice(data) {
  return request({
    url: '/settlementCenter/basedata/settlementprice',
    method: 'put',
    timeout: 60000,
    data: data
  })
}

// 删除结算价格
export function delSettlementprice(id) {
  return request({
    url: '/settlementCenter/basedata/settlementprice/' + id,
    method: 'delete'
  })
}

// 查询物料对象
export function queryMaterial() {
  return request({
    url: '/settlementCenter/basedata/settlementprice/material/',
    method: 'get',
    timeout: 10000
  })
}
// 查询物料对象
export function queryMaterialObject(Number) {
  return request({
    url: '/settlementCenter/basedata/settlementprice/material/'+Number,
    method: 'get',
    timeout: 10000
  })
}

